package com.basic.modules.nykf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.basic.modules.nykf.service.DictDetailService;
import com.basic.modules.ykf.dao.YkfDictDetailDao;
import com.basic.modules.ykf.entity.YkfDictDetailEntity;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class DictDetailServiceImpl extends ServiceImpl<YkfDictDetailDao,YkfDictDetailEntity> implements DictDetailService {
    @Override
    public List<YkfDictDetailEntity> getByParentIdList(Long dictId) {
        QueryWrapper<YkfDictDetailEntity> QueryWrapper = new QueryWrapper<>();
        QueryWrapper.eq("parent_id",dictId);
        return list(QueryWrapper);
    }
}
